package ecomm.lib_comm.permission;

import android.app.Activity;
import android.util.Log;

/**
 * Created by RaoQian on 2022/9/14.
 */
public abstract class DialogProxy {
    public abstract void showDialog(Activity thisActivity, String tips, boolean isCancel, int viewTipsCount, boolean isFinal);

    public interface PermissionController {
        void onSureClick();

        void onCancelClick();
    }

    PermissionController mPermissionController;

    public final void addConController(PermissionController lis) {
        this.mPermissionController = lis;
    }

    public final void sureClick() {
        Log.e("DialogProxy", "onSureClick.215:");
        if (mPermissionController != null) {
            mPermissionController.onSureClick();
        }
    }

    public final void cancelClick() {
        Log.e("DialogProxy", "onSureClick.215:");
        if (mPermissionController != null) {
            mPermissionController.onCancelClick();
        }
    }
}
